
using [java]java.util::Date as JDate

class JavaHelperTest : Test
{
	Void testApplyMapToJavaObject ()
	{
          JavaHelper.applyMapToJavaObject(["dummyInt":42],this)
          verifyEq(42,dummyInt)      
          JavaHelper.applyMapToJavaObject(["dummyStr":"hallo"],this)
          verifyEq("hallo",dummyStr)
          d := JDate()
          JavaHelper.applyMapToJavaObject(["hours":12],d)
          verifyEq(12,d.getHours)
	}

  
    
    Int dummyInt := 0
    Str dummyStr := ""  
    Void setDummyInt(Int v) {
      dummyInt = v
    }
    Void setDummyStr(Str v) {
        dummyStr = v
    }  
}

